﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 客户OpenID
    /// </summary>
    public partial class SysCustomerOpenID
    {
        /// <summary>
        /// 非数据库字段
        /// </summary>
        [NotMapped]
        public string WechatToken { get; set; }

        /// <summary>
        /// 非数据库字段
        /// </summary>
        [NotMapped]
        public string session_Key { get; set; }

        /// <summary>
        /// 得到主店铺ID
        /// </summary>
        /// <returns></returns>
        public int GetParentID()
        {
            if (this.SysStore == null)
            {
                return -1;
            }
            return this.SysStore.GetParentID();
        }
    }
}
